package com.huaboot.system.convert;

import com.huaboot.framework.security.user.LoginUser;
import com.huaboot.system.entity.SysUserEntity;
import com.huaboot.system.vo.SysUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SysUserConvert {
    SysUserConvert INSTANCE = Mappers.getMapper(SysUserConvert.class);

    SysUserVO convert(SysUserEntity entity);

    SysUserEntity convert(SysUserVO vo);


    SysUserVO convert(LoginUser userDetail);
//
    LoginUser convertDetail(SysUserEntity entity);
//
    List<SysUserVO> convertList(List<SysUserEntity> list);
//
//    List<SysUserExcelVO> convert2List(List<SysUserEntity> list);
//
//    List<SysUserEntity> convertListEntity(List<SysUserExcelVO> list);

}
